<template>
  <view class="renzheng">
    <view class="list" v-for="item in list" :key="item.val" @click="changeTab(item)">
      <view>{{ item.label }}</view>
      <text class="yzb yzb-next icon-next"></text>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {
      list: [
        {
          label: '企业认证管理',
          val: 1,
          url: '/pages/user/renzheng/companyAuth',
        },
        {
          label: '实名认证管理',
          val: 2,
          url: '/pages/user/renzheng/enterprise',
        },
      ],
    }
  },
  methods: {
    changeTab(item) {
      console.log(item,'item')
      uni.navigateTo({
        url: item.url,
      })
    },
  },
}
</script>
<style scoped lang="scss">
.renzheng {
  padding: 0 30rpx;
  .list {
    display: flex;
    justify-content: space-between;
    color: #333333;
    padding: 40rpx 0;
    border-bottom: 1px solid #f9f9f9;
    view {
      font-size: 30rpx;
    }
    .yzb-next {
      font-size: 32rpx;
      font-weight: bold;
    }
  }
}
</style>
